package jgl.vajra.kingkong.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CommonAddressBean implements Parcelable {

    public CommonAddressBean() {
    }

    public long id;
    public String address;
    public String houseNumber;
    public String city;
    public String contactName;
    public String contactPhone;
    public String longitude;
    public String latitude;

    protected CommonAddressBean(Parcel in) {
        id = in.readLong();
        address = in.readString();
        houseNumber = in.readString();
        city = in.readString();
        contactName = in.readString();
        contactPhone = in.readString();
        longitude = in.readString();
        latitude = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(address);
        dest.writeString(houseNumber);
        dest.writeString(city);
        dest.writeString(contactName);
        dest.writeString(contactPhone);
        dest.writeString(longitude);
        dest.writeString(latitude);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CommonAddressBean> CREATOR = new Creator<CommonAddressBean>() {
        @Override
        public CommonAddressBean createFromParcel(Parcel in) {
            return new CommonAddressBean(in);
        }

        @Override
        public CommonAddressBean[] newArray(int size) {
            return new CommonAddressBean[size];
        }
    };
}
